import { getRandomDateTime, getNowDate, getFeatureDate } from '../../../../utils'
import Mock from 'mockjs'
export const smsChannelMock = pageSize => {
  const result: any[] = []
  const codeList = ['TENCENT', 'HUAWEI', 'QINIU', 'ALIYUN', 'DEBUG_DING_TALK']
  for (let i = 0; i < pageSize; i++) {
    result.push({
      id: i + 1,
      code: codeList[Mock.mock('@integer(0, 4)')],
      status: Mock.mock('@integer(0, 1)'),
      signature: Mock.mock('@word'),
      remark: Mock.mock('@csentence()'),
      apiKey: Mock.mock('@word'),
      apiSecret: Mock.mock('@word'),
      callbackUrl: Mock.mock('@url'),
      creator: '1',
      create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
      updater: '',
      update_time: '',
      deleted: false,
      deleted_time: ''
    })
  }
  return result
}
